import { BasicColumn, FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
  {
    title: '支付方式代码',
    width: 120,
    dataIndex: 'wayCode'
  },
  {
    title: '支付方式名称',
    width: 120,
    dataIndex: 'wayName',
  },
  {
    title: '备注',
    width: 150,
    dataIndex: 'remark',
  },
  {
    title: '创建时间',
    width: 150,
    dataIndex: 'createdAt',
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'wayCode',
    label: '支付方式代码',
    component: 'Input',
    colProps: {span: 8},
  },
  {
    field: 'wayName',
    label: '支付方式名称',
    component: 'Input',
    colProps: {span: 8},
  }
];


export const formSchema: FormSchema[] = [
  {
    field: 'wayCode',
    label: '支付方式代码',
    required: true,
    component: 'Input',
    labelWidth: 100
  },
  {
    field: 'wayName',
    label: '支付方式名称',
    required: true,
    component: 'Input',
    labelWidth: 100
  },
  {
    field: 'remark',
    label: '备注',
    component: 'InputTextArea',
    labelWidth: 100
  },
]
